package models

import "gorm.io/gorm"

type User struct {
	Name     string `json:"name"`
	Password string `json:"password"`
	gorm.Model
}
type UserRole struct {
	Uid int `json:"uid"`
	Rid int `json:"rid"`
}
type Role struct {
	RoleName string `json:"role_name"`
	gorm.Model
}

type RoleNode struct {
	Rid int `json:"rid"`
	Nid int `json:"nid"`
}

type Node struct {
	NodeName string `json:"node_name"`
	gorm.Model
}
type Order struct {
	OrderNo    string `json:"order_no"`
	OrderName  string `json:"order_name"`
	OrderPrice int    `json:"order_price"`
	gorm.Model
}
type Repo struct {
	RepoNo    string `json:"repo_no"`
	RpeoName  string `json:"rpeo_name"`
	RepoPrice int    `json:"repo_price"`
	gorm.Model
}
